@import "./antd.less";
@import "./columnConfiguration.less";
@import "./equipment.less";

html,
body {
  // overflow-x: hidden;
}

body,
dl,
dd,
ul,
ol,
h1,
h2,
h3,
h4,
h5,
h6,
pre,
form,
input,
textarea,
p,
menu,
thead,
tbody,
tfoot,
th,
td {
  margin: 0;
  padding: 0;
}

* {
  box-sizing: border-box;
}

// 清除浮动
.clearfix:after {
  content: "";
  display: block;
  clear: both;
}

/*修改滚动条样式*/
.scroll::-webkit-scrollbar {
  width: 5px;
  height: 5px;
  /**/
}

.scrollNone::-webkit-scrollbar {
  width: 0px;
}

.scroll::-webkit-scrollbar-track {
  background: white;
  border-radius: 2px;
}

.scroll::-webkit-scrollbar-thumb {
  background: rgba(198, 198, 198);
  border-radius: 10px;
}

.scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(158, 158, 158);
}

.el-button--primary span {
  margin-left: 5px;
}

//表格无数据样式
.el-table__empty-block {
  width: 100% !important;
}

.el-empty {
  padding: 0;

  .el-empty__description {
    margin-top: 0;
  }
}

//分页组件公共样式
.el-pagination.is-background {
  padding: 10px 5px;
  text-align: right;

  button.btn-next,
  button.btn-prev {
    background-color: #fff;
    border: 1px solid #d3d8e3;
    font-size: 14px;
    color: #000;
    transition: border-color .3s;
    padding: 0;
  }

  button.btn-next:hover,
  button.btn-prev:hover {
    // border-color: #02b980;
    // color: #02b980;
  }

  button.btn-next:disabled:hover,
  button.btn-prev:disabled:hover {
    border-color: #d3d8e3;
    color: #C0C4CC;
  }

  .el-pager {
    li.number {
      background-color: #fff;
      border: 1px solid #d3d8e3;
      transition: border-color .3s;
      margin: 0 5px;
    }

    li.number:hover {
      // border-color: #02b980;
    }

    li.el-icon.more.btn-quicknext.el-icon-more,
    li.el-icon.more.btn-quickprev.el-icon-more {
      background-color: #fff;
    }
  }

  span.el-pagination__sizes {
    margin: 0;
  }

  .el-pagination__jump {
    margin-left: 10px;
  }
}

//生产管理--工单--批量操作修改popover宽度
.el-popper.el-popover.batchPoper {
  width: 97px;
  min-width: 97px;
  margin-top: 5px;
  padding: 0;

  .operateBtn {
    >button {
      margin-left: 0;
      width: 100%;
      padding: 10px 15px;
    }

    >button:hover {
      background-color: rgba(2, 185, 128, 0.1);
    }
  }
}

.el-popper.el-popover {
  img {
    object-fit: scale-down;
  }
}

//加急
.el-dropdown-menu__item.dropdowncode{
  padding: 0 20px;
}
.el-dropdown-menu__item.content__1s_xr{
  line-height: 37px;
  border-top:1px dashed rgba(2, 185, 128, 0.3);
  text-align: center;
}
//工单-批量操作
.el-dropdown-menu__item.urgent{
.el-button--text{
      .iconfont{
          font-size: 13px;
          margin-right: 8px;
      }
  }
}

//工单-列表操作
.el-message-box.messagebox{
  .el-message-box__btns{
    .el-button{
      padding: 9px 25px;
      border-radius: 6px;
    }

    .dangerBtn{
      background-color: #f55;
      border-color: #f55;
    }
  }
}

//表格sortable排序左右排开
.el-table th.el-table__cell.is-sortable {
  div.cell {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
}

//表格操作列高度不够问题
.el-table__fixed-right {
  height: 100% !important;
}

// select下拉框选项list高度
.el-select-dropdown__item {
  height: auto;
}

//全局消息提示框
div.el-message {
  min-width: 0;
  padding: 10px 15px;
}

//下拉框的滚动条重叠问题
.el-scrollbar__thumb {
  display: none;
}

//Popconfirm 气泡确认框 文字与按钮间距
.el-popconfirm__main {
  margin-bottom: 10px;
}

//隐藏select下拉框
.specialSelect {
  display: none;
}

//创建报工select下拉框
.colorSelect {

  .el-select-dropdown__item,
  .el-select-dropdown__item.selected {
    .code {
      color: #000;
      height: 24px;
    }

    .product {
      color: rgba(0, 0, 0, 0.5);
      font-size: 12px;
      font-weight: normal;
      padding-right: 20px;
    }
  }

  .el-select-dropdown__item.selected {
    .code {
      font-weight: bold;
    }
  }

  .el-select-dropdown__item.selected,
  .el-scrollbar li.el-select-dropdown__item.hover {
    background-color: #e6f8f2;
  }
}

//全局表格
.el-table .el-table__cell {
  padding: 10px 0;
}


//自定义字段--设置可选范围
.pickerContent {
  display: flex;
  height: 70px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;

  .colorPicker {
    cursor: pointer;
    width: 22px;
    height: 20px;
    border-radius: 50%;
    margin-right: 10px;
  }

  .colorPicker:nth-child(5n + 5) {
    margin-right: 0;
  }

  .colorPicker:hover {
    transform: scale(1.15);
  }
}


//自定义字段列表
.tableList,.inStockDetail {
  .customImg {
    width: 60px;
    height: 60px;
    margin-right: 10px;
    cursor: pointer;
    object-fit: scale-down;
  }

  .customImgMoreBox {
    position: relative;
    height: 100%;
    display: inline-block;

    .customImgMore {
      position: absolute;
      left: 0;
      top: 0;
      width: 60px;
      height: 60px;
      background: rgba(0, 0, 0, .3);
      color: #fff;
      font-size: 10px;
      line-height: 60px;
      text-align: center;
      cursor: pointer;
    }
  }

  .carouselImg {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    height: calc(100% - 92px);
  }

  .imgDownLoad {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 30px;
    background: #02b980;
    color: #fff;
    z-index: 99;
    padding: 5px 10px;
    cursor: pointer;
  }

  .customSelect {
    display: inline-block;
    padding: 0px 6px;
    margin-right: 4px;
    border-radius: 4px;
  }
}


//筛选方案 tab标签 popover框
.el-popover.el-popper.custom{
  padding-bottom: 0;
  padding-top: 20px;
  max-height: 750px;
  max-width: 1000px;
  overflow-y: auto;
  .secondGroup{
    display: flex;
    flex-wrap: wrap;
    .item-card{
      display: flex;
      align-items: center;
      padding: 0 8px;
      text-align: center;
      font-family: sans-serif;
      border-right: 1px solid #e5e5e5;
      margin-bottom: 20px;
      user-select: none;
      .icon{
        margin-right: 8px;
      }
      .groupName{
        font-size: 14px;
        color: #666;
      }
    }
    .active{
      .groupName{
        color: rgb(83, 162, 244);
        font-weight: 600;
      }
    }
    .item-card:hover .groupName{
      font-weight: 600;
    }
  }
  .el-popover__title{
    font-size: 14px;
    font-family: sans-serif;
    color: rgba(0,0,0,.85);
    font-weight: 400;
    padding: 20px 0 0 20px;
  }
  .descriptions {
    .descriptions_item {
        >span:nth-child(1) {
            display: inline-block;
            width: 120px;
            text-align: right;
            margin: 10px 20px 10px 0;
            color: #8e98ae;
            font-size: 14px;
        }

        span:nth-child(2) {
            display: inline-block;
            width: 200px;
            vertical-align: text-top;
            font-size: 14px;
            color: rgba(0,0,0,.85);
            font-family: sans-serif;
        }
    }
}
}

//联络灯管理 - 联络灯报表 - 联络灯日志
.el-popover.el-popper.lampPopper{
  height: 350px;
  overflow-y: auto;
  overflow-x: hidden;
  .logList{
      display: flex;
      flex-direction: column;
    .log_item{
      display: flex;
      flex-direction: column;
      .time{
        font-size: 13px;
        color: #c0c4cc;
      }
      .logdesc{
        color: #606266;
        font-size: 14px;
      }
    }
  }
}

.el-popover.el-popper.productForm_scheme {
  .el-checkbox-group {
    max-height: 510px;
    overflow-y: auto;
  }
}

//任务--分配列表提示框
.el-tooltip__popper.is-dark.distribution{
  max-width: 260px;
}

.el-tooltip__popper.is-dark{
  max-width: 300px;
}

//自定义字段--设置可选范围
.el-popover.el-popper.scope{
  width: 190px;
}

//自定义字段--计算公式
.el-popover.el-popper.formula{
  min-width: 10px;
}

//工单--选择产品 提示说明
.productDisplay__e5bCl {
  width: 350px;
  padding: 20px 40px;
  background: #fafafa;
  margin-top: -10px;

  .productDisplayItem__gvh_D {
      display: flex;
      font-size: 14px;
      line-height: 28px;

      .productDisplayItemLabel__95jJE {
          flex: none;
          color: #666;
          margin-right: 22px;
      }

      .productDisplayItemValue__I8W5_ {
          flex: auto;
          word-break: break-all;
          color: #333;
      }
  }
}

//表格固定列出现横向滚动条 鼠标点击固定列区域滚动条不能拖拽的问题
.el-table { .el-table__body-wrapper { z-index: 2; } }


//时间日期选择器 清空按钮隐藏
.el-picker-panel__footer{
  .el-button.el-picker-panel__link-btn.el-button--text{
    >span{
      display: none;
    }
  }
}

//联络灯报表表单
.commonSearch {
  padding: 20px 20px 0;

  .commonContent {
      border-bottom: 1px solid #e8e8e8;
      display: flex;

      .el-form {
          display: flex;
          flex-wrap: wrap;
      }
  }

  /deep/ .el-form-item__label {
      font-size: 12px;
      color: rgba(0, 0, 0, .85);
  }
}

